package com.school.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.school.entity.HljtTeacher;
import com.school.entity.HljtTeacherclass;
import com.school.entity.web.ClassTeacher;
import com.school.entity.web.TeacherClass;

public interface HljtTeacherclassService {
	/**
	 * 通过科目查找对应的班级老师
	 * @param classId
	 * @return
	 */
	public HljtTeacherclass findTeacher(String Subject);
	/**
	 * 通过班级id和type查找对应老师id
	 * @param classId
	 * @param type
	 * @return
	 */
	public HljtTeacherclass findTeacherInformation(Integer classId,Integer type);
	/**
	 * 通过班级id查找该班级所有老师id
	 * @param classid
	 * @return
	 */
	public List<HljtTeacherclass> findClassTeacher(Integer classid);
	
	/**
	 * 通过classid和subject查找老师名字
	 * @param classid
	 * @param subject
	 * @return
	 */
	String selsectTeacherName(Integer classid,String subject );
	/**
	 * 
	 * @return
	 */
	List<ClassTeacher> findTeacherclass();
	/**
	 * 
	 * @return
	 */
	List<HljtTeacherclass> getteacher(Integer teacherid);
	/**
	 * 
	 * @return
	 */
	List<HljtTeacherclass> findteacherall(Integer pageSize,Integer  pageIndex);
	/**
	 * 
	 * @param teacherid
	 * @return
	 */
	List<TeacherClass> selectteacher(Integer teacherid);
	/**
	 * 
	 * @param teachername
	 * @return
	 */
	List<HljtTeacher> likefindteacher(String teachername,Integer pageSize,Integer  pageIndex);
	/**
	 * 
	 * @param teacherid
	 * @return
	 */
	Integer deleteclassteacher(Integer teacherid);
	/**
	 * 
	 * @param hljtTeacherclass
	 * @return
	 */
	Integer addclassteacher(HljtTeacherclass hljtTeacherclass);
	/**
	 * 查找班级班主任
	 * @param classid
	 * @return
	 */
	List<HljtTeacherclass> getTeacherall(Integer classid,Integer pageSize,Integer  pageIndex);
	/**
	 * 根据班主任老师id查找对应班级
	 * @param teacherid
	 * @return
	 */
	HljtTeacherclass findTeachers(@Param(value="teacherid")Integer teacherid);
	/**
	 * 删除班主任
	 * @param classid
	 * @param teacherid
	 * @return
	 */
	Integer deleteTeachers(Integer id);
	/**
	 * 修改
	 * @param hljtTeacherclass
	 * @return
	 */
	Integer updateTeacher(HljtTeacherclass hljtTeacherclass);
	/**
	 * 
	 * @return
	 */
	Integer selsectClaissTeacher(Integer classid,Integer teacherid);
	/**
	 * 
	 * @param classid
	 * @param teacherid
	 * @return
	 */
	Integer selsectClaissTeachers(Integer classid,Integer teacherid);
}
